package com.zb.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 编码打印模板组件表
 * </p>
 *
 * @author WEN
 * @since 2023-09-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ZjCodePrintTemplateComponent对象", description="编码打印模板组件表")
public class ZjCodePrintTemplateComponent implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主健ID")
    private Long id;

    @ApiModelProperty(value = "商家ID")
    private Long custAccId;

    @ApiModelProperty(value = "编码打印模板表ID")
    private Long printTemplateId;

    @ApiModelProperty(value = "父级ID")
    private Long parentId;

    @ApiModelProperty(value = "组件名称/组件模板名称")
    private String name;

    @ApiModelProperty(value = "组件类型：1-编码组件，2-图片组件，3-文本组件")
    private Integer type;

    @ApiModelProperty(value = "宽度")
    private Float width;

    @ApiModelProperty(value = "高度")
    private Float height;

    @ApiModelProperty(value = "是否锁定比例：0不锁定，1锁定")
    @TableField("is_lock_scale")
    private Boolean lockScale;

    @ApiModelProperty(value = "锁定比例大小")
    private Float scaleSize;

    @ApiModelProperty(value = "坐标X")
    private Float coordinateX;

    @ApiModelProperty(value = "坐标Y")
    private Float coordinateY;

    @ApiModelProperty(value = "旋转角度")
    private Float rotateAngle;

    @ApiModelProperty(value = "编码类型: 1-二维码，2-一维码")
    private Integer codeType;

    @ApiModelProperty(value = "图片路径")
    private String image;

    @ApiModelProperty(value = "文本字体：1-微软雅黑，2-黑体，3-宋体，4-楷体，5-隶书，6-幼圆，7-仿宋")
    private Integer textFont;

    @ApiModelProperty(value = "文本字号")
    private Float textWordSize;

    @ApiModelProperty(value = "文本行高")
    private Float textRowHeight;

    @ApiModelProperty(value = "首行缩进")
    private Float textIndent;

    @ApiModelProperty(value = "文本间距")
    private Float textSpacing;

    @ApiModelProperty(value = "文本对齐方式：1-右对齐，2-居中对齐，3-左对齐")
    private Integer textAlign;

    @ApiModelProperty(value = "是否文本加粗：0-不加粗，1-加粗")
    private Boolean textBold;

    @ApiModelProperty(value = "是否文本倾斜：0-不倾斜，1-倾斜")
    private Boolean textIncline;

    @ApiModelProperty(value = "是否要文本下划线：0-不加下划线，1-加下划线")
    private Boolean textUnderline;

    @ApiModelProperty(value = "文本颜色")
    private String textColor;


}
